const commonJs = {
    isInstall: function(packageName){
        let isInstall = false;
        let sApp = startApp.set({
            "package":packageName
        });
        sApp.check(function(values) { /* success */
            isInstall = true;
            console.log(packageName+"check is install");
            /*console.log(values);*/
        }, function(error) { /* fail */
            isInstall = false;
            console.log(packageName+"check error and not install:"+error);
        });
        return isInstall;
    }
}

// 导出组件
export default commonJs;